﻿using Dapper;
using System;
using BCEntity.OA.WorkflowActive.WorkflowActivityStepCompleteChecking;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;

namespace BCData.OA.WorkflowActive.WorkflowActivityStepCompleteChecking
{
	/// <summary>
	/// 工作流活动步骤完成检查
	/// </summary>
	public interface IWorkflowActivityStepCompleteCheckingData
	{
		#region  成员方法
		/// <summary>
		/// 是否存在该记录
		/// </summary>
		/// <param name="workflowActivityStepCompleteCheckingId">工作流活动步骤完成检查Id</param>
		Task<bool> Exists(long workflowActivityStepCompleteCheckingId);
		/// <summary>
		/// 增加工作流活动步骤完成检查
		/// </summary>
		/// <param name="entity">工作流活动步骤完成检查信息</param>
		Task<WorkflowActivityStepCompleteCheckingEntity> Add(WorkflowActivityStepCompleteCheckingEntity entity);
		/// <summary>
		/// 增加工作流活动步骤完成检查
		/// </summary>
		/// <param name="entity">工作流活动步骤完成检查信息</param>
		Task<bool> Add(List<WorkflowActivityStepCompleteCheckingEntity> entities);
		/// <summary>
		/// 更新工作流活动步骤完成检查
		/// </summary>
		/// <param name="entity">工作流活动步骤完成检查信息</param>
		Task<bool> UpdateStatusForFormSubmit(WorkflowActivityStepCompleteCheckingEntity entity);
		/// <summary>
		/// 更新工作流活动步骤完成检查
		/// </summary>
		/// <param name="entity">工作流活动步骤完成检查信息</param>
		Task<bool> UpdateStatusForOperationType(WorkflowActivityStepCompleteCheckingEntity entity);
		/// <summary>
		/// 删除工作流活动步骤完成检查
		/// </summary>
		/// <param name="workflowActivityStepCompleteCheckingId">工作流活动步骤完成检查Id</param>
		Task<bool> Delete(long workflowActivityStepCompleteCheckingId);
		/// <summary>
		/// 获取工作流活动步骤完成检查
		/// </summary>
		/// <param name="workflowActivityStepCompleteCheckingId">工作流活动步骤完成检查Id</param>
		Task<WorkflowActivityStepCompleteCheckingEntity> GetEntity(long workflowActivityStepCompleteCheckingId);
		/// <summary>
		/// 获取工作流活动步骤完成检查列表
		/// </summary>
		/// <param name="workflowActivityStepId">工作流活动步骤Id</param>
		Task<IEnumerable<WorkflowActivityStepCompleteCheckingEntity>> GetList(long workflowActivityStepId);
		/// <summary>
		/// 获取工作流活动步骤完成检查分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">每页数据条数</param>
		Task<(IEnumerable<WorkflowActivityStepCompleteCheckingEntity>, int)> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}


}